//
//  mineButton.m
//  DirectMember
//
//  Created by jzd on 2018/6/25.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "mineButton.h"

@implementation mineButton

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self setTitleColor:TITLECOLOR forState:UIControlStateNormal];
        self.imageView.contentMode = UIViewContentModeBottom;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

-(void)awakeFromNib{
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    [self setTitleColor:TITLECOLOR forState:UIControlStateNormal];
    self.imageView.contentMode = UIViewContentModeBottom;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.imageView.frame = CGRectMake(0, 0, self.width, self.height-50);
    self.titleLabel.frame = CGRectMake(0, self.height-50, self.width, 50);
}

@end
